package com.mark.service;

import com.mark.common.ServerResponse;
import com.mark.pojo.Category;

import java.util.List;

/**
 * Created by Mark on 2018/3/24.
 */
public interface ICategoryService {
    ServerResponse addCategory(String categoryName, Integer parentId, String imageAddress);

    ServerResponse updateCategoryName(Integer categoryId, String categoryNewName);

    ServerResponse getChildrenParallelCategory(Integer categoryId);

    ServerResponse<List<Integer>>selectCategoryAndChildrenById(Integer categoryId);

    Category selectCategoryById(Integer id);
}
